/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package view;

import controle.DisciplinasRestantesService;
import java.awt.CardLayout;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.Collection;
import model.Disciplina;

/**
 *
 * @author Lucas
 */
public class ApresentacaoGUI extends javax.swing.JFrame {

    int userId;
    DisciplinasRestantesService disciplinasService;
    /**
     * Creates new form ApresentacaoGUI
     */
    public ApresentacaoGUI() {
        initComponents();
         try {
            String host = "jdbc:derby://localhost:1527/SATODA_TESTE";
            String uName = "grupo6";
            String uPass = "APP";
            Connection con = DriverManager.getConnection(host, uName, uPass);
        } catch (SQLException ex) {
            System.out.println("Erro:");
           System.out.println(ex);
            // appendToFile(ex);
        }
        disciplinasService = new DisciplinasRestantesService();
       
    }
    
    public void fillRestantes(){ 
        Collection<Disciplina> restante = disciplinasService.getDisciplinasRestantes(userId);
        for(Disciplina d : restante){
            listRestantes.add(d.getCodigo() + " " + d.getNome());
        }
    }

    public void fillObrigatorias(){
        Collection<Disciplina> obrigatorias = disciplinasService.getDisciplinaObrigatoria(userId);
        
        for(Disciplina d : obrigatorias){
            System.out.println(d.getCodigo() + " " + d.getNome());
            listObrigatorias.add(d.getCodigo() + " " + d.getNome());
        }
    }
    
    public void fillCursadas(){
        Collection<Disciplina> cursadas = disciplinasService.getDisciplinaCursadas(userId);
        
        for(Disciplina d : cursadas){
            System.out.println(d.getCodigo() + " " + d.getNome());
            listCursadas.add(d.getCodigo() + " " + d.getNome());
        }
    }
    
    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel2 = new javax.swing.JPanel();
        jCheckBox1 = new javax.swing.JCheckBox();
        jPanel3 = new javax.swing.JPanel();
        jLabel4 = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        catalogoButton = new javax.swing.JButton();
        naoCursadasButton = new javax.swing.JButton();
        cursadasButton = new javax.swing.JButton();
        painelPrincipal = new javax.swing.JPanel();
        painelEntrada = new javax.swing.JPanel();
        jLabel7 = new javax.swing.JLabel();
        raTextField = new javax.swing.JTextField();
        jButton3 = new javax.swing.JButton();
        painelCatalogo = new javax.swing.JPanel();
        jLabel3 = new javax.swing.JLabel();
        listObrigatorias = new java.awt.List();
        painelNaoCursadas = new javax.swing.JPanel();
        jLabel9 = new javax.swing.JLabel();
        listRestantes = new java.awt.List();
        painelPrefixo = new javax.swing.JPanel();
        jPanel6 = new javax.swing.JPanel();
        jLabel10 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        jComboBox2 = new javax.swing.JComboBox();
        jLabel16 = new javax.swing.JLabel();
        painelCursadas = new javax.swing.JPanel();
        jLabel13 = new javax.swing.JLabel();
        listCursadas = new java.awt.List();

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );

        jCheckBox1.setText("jCheckBox1");

        jPanel3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 129, Short.MAX_VALUE)
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );

        jLabel4.setText("jLabel4");

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Grupo 6 - Módulo Apresentação");
        setBackground(java.awt.Color.red);

        jLabel1.setText("Grupo 6 - Módulo Apresentação");

        catalogoButton.setText("Disciplinas do Catálogo");
        catalogoButton.setEnabled(false);
        catalogoButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                catalogoButtonActionPerformed(evt);
            }
        });

        naoCursadasButton.setText("Disciplinas Não Cursadas");
        naoCursadasButton.setEnabled(false);
        naoCursadasButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                naoCursadasButtonActionPerformed(evt);
            }
        });

        cursadasButton.setText("Disciplinas Cursadas");
        cursadasButton.setEnabled(false);
        cursadasButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cursadasButtonActionPerformed(evt);
            }
        });

        painelPrincipal.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        painelPrincipal.setLayout(new java.awt.CardLayout());

        jLabel7.setText("RA");

        raTextField.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                raTextFieldActionPerformed(evt);
            }
        });

        jButton3.setText("Entrar");
        jButton3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton3ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout painelEntradaLayout = new javax.swing.GroupLayout(painelEntrada);
        painelEntrada.setLayout(painelEntradaLayout);
        painelEntradaLayout.setHorizontalGroup(
            painelEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(painelEntradaLayout.createSequentialGroup()
                .addGap(36, 36, 36)
                .addComponent(jLabel7)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(raTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButton3)
                .addContainerGap(98, Short.MAX_VALUE))
        );
        painelEntradaLayout.setVerticalGroup(
            painelEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(painelEntradaLayout.createSequentialGroup()
                .addGap(71, 71, 71)
                .addGroup(painelEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel7)
                    .addComponent(raTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(209, Short.MAX_VALUE))
        );

        painelPrincipal.add(painelEntrada, "card6");

        jLabel3.setText("Disciplinas no Catalogo");

        listObrigatorias.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                listObrigatoriasActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout painelCatalogoLayout = new javax.swing.GroupLayout(painelCatalogo);
        painelCatalogo.setLayout(painelCatalogoLayout);
        painelCatalogoLayout.setHorizontalGroup(
            painelCatalogoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(painelCatalogoLayout.createSequentialGroup()
                .addGap(75, 75, 75)
                .addComponent(jLabel3)
                .addContainerGap(87, Short.MAX_VALUE))
            .addGroup(painelCatalogoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(painelCatalogoLayout.createSequentialGroup()
                    .addGap(46, 46, 46)
                    .addComponent(listObrigatorias, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGap(46, 46, 46)))
        );
        painelCatalogoLayout.setVerticalGroup(
            painelCatalogoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(painelCatalogoLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel3)
                .addContainerGap(275, Short.MAX_VALUE))
            .addGroup(painelCatalogoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(painelCatalogoLayout.createSequentialGroup()
                    .addGap(36, 36, 36)
                    .addComponent(listObrigatorias, javax.swing.GroupLayout.PREFERRED_SIZE, 237, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(27, Short.MAX_VALUE)))
        );

        painelPrincipal.add(painelCatalogo, "painelCatalogo");

        jLabel9.setText("Disciplinas Não Cursadas do Catalogo");

        listRestantes.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                listRestantesActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout painelNaoCursadasLayout = new javax.swing.GroupLayout(painelNaoCursadas);
        painelNaoCursadas.setLayout(painelNaoCursadasLayout);
        painelNaoCursadasLayout.setHorizontalGroup(
            painelNaoCursadasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(painelNaoCursadasLayout.createSequentialGroup()
                .addGap(43, 43, 43)
                .addGroup(painelNaoCursadasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jLabel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(listRestantes, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap(49, Short.MAX_VALUE))
        );
        painelNaoCursadasLayout.setVerticalGroup(
            painelNaoCursadasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(painelNaoCursadasLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel9)
                .addGap(18, 18, 18)
                .addComponent(listRestantes, javax.swing.GroupLayout.PREFERRED_SIZE, 247, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        painelPrincipal.add(painelNaoCursadas, "painelNaoCursadas");

        jPanel6.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        jPanel6.setLayout(new java.awt.BorderLayout());

        jLabel10.setText("Disciplina 1");
        jPanel6.add(jLabel10, java.awt.BorderLayout.CENTER);

        jLabel11.setText("Disciplina 2");
        jPanel6.add(jLabel11, java.awt.BorderLayout.PAGE_END);

        jLabel12.setText("Disciplinas do Catalogo Por Prefixo");

        jComboBox2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        jLabel16.setText("Prefixo:");

        javax.swing.GroupLayout painelPrefixoLayout = new javax.swing.GroupLayout(painelPrefixo);
        painelPrefixo.setLayout(painelPrefixoLayout);
        painelPrefixoLayout.setHorizontalGroup(
            painelPrefixoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(painelPrefixoLayout.createSequentialGroup()
                .addGap(51, 51, 51)
                .addGroup(painelPrefixoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addGroup(painelPrefixoLayout.createSequentialGroup()
                        .addComponent(jLabel16, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jLabel12, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel6, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 165, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(55, Short.MAX_VALUE))
        );
        painelPrefixoLayout.setVerticalGroup(
            painelPrefixoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(painelPrefixoLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel12)
                .addGap(9, 9, 9)
                .addGroup(painelPrefixoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel16))
                .addGap(18, 18, 18)
                .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(171, Short.MAX_VALUE))
        );

        painelPrincipal.add(painelPrefixo, "painelPrefixo");

        jLabel13.setText("Disciplinas Cursadas");

        listCursadas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                listCursadasActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout painelCursadasLayout = new javax.swing.GroupLayout(painelCursadas);
        painelCursadas.setLayout(painelCursadasLayout);
        painelCursadasLayout.setHorizontalGroup(
            painelCursadasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(painelCursadasLayout.createSequentialGroup()
                .addGap(43, 43, 43)
                .addGroup(painelCursadasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(listCursadas, javax.swing.GroupLayout.PREFERRED_SIZE, 162, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(painelCursadasLayout.createSequentialGroup()
                        .addGap(36, 36, 36)
                        .addComponent(jLabel13)))
                .addContainerGap(66, Short.MAX_VALUE))
        );
        painelCursadasLayout.setVerticalGroup(
            painelCursadasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(painelCursadasLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel13)
                .addGap(18, 18, 18)
                .addComponent(listCursadas, javax.swing.GroupLayout.PREFERRED_SIZE, 247, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        painelPrincipal.add(painelCursadas, "painelCursadas");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(116, 116, 116)
                .addComponent(jLabel1)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addGap(48, 48, 48)
                .addComponent(painelPrincipal, javax.swing.GroupLayout.PREFERRED_SIZE, 275, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 38, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(naoCursadasButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(catalogoButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(cursadasButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(42, 42, 42))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(35, 35, 35)
                .addComponent(jLabel1)
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(painelPrincipal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(catalogoButton)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(naoCursadasButton)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(cursadasButton)))
                .addContainerGap(21, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void catalogoButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_catalogoButtonActionPerformed
        CardLayout cardLayout = (CardLayout) painelPrincipal.getLayout();
        cardLayout.show(painelPrincipal, "painelCatalogo");
    }//GEN-LAST:event_catalogoButtonActionPerformed

    private void naoCursadasButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_naoCursadasButtonActionPerformed
        CardLayout cardLayout = (CardLayout) painelPrincipal.getLayout();
        cardLayout.show(painelPrincipal, "painelNaoCursadas");
    }//GEN-LAST:event_naoCursadasButtonActionPerformed

    private void listRestantesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_listRestantesActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_listRestantesActionPerformed

    private void raTextFieldActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_raTextFieldActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_raTextFieldActionPerformed

    private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed
        // TODO add your handling code here:
        //POSSIVEL ERRO
        userId = Integer.parseInt(raTextField.getText());
        System.out.println(userId);
        CardLayout cardLayout = (CardLayout) painelPrincipal.getLayout();
        cardLayout.show(painelPrincipal, "painelNaoCursadas");
        catalogoButton.setEnabled(true);
        naoCursadasButton.setEnabled(true);
        cursadasButton.setEnabled(true);
        
        fillObrigatorias();
        fillRestantes();
        fillCursadas();
        
        
    }//GEN-LAST:event_jButton3ActionPerformed

    private void listObrigatoriasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_listObrigatoriasActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_listObrigatoriasActionPerformed

    private void listCursadasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_listCursadasActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_listCursadasActionPerformed

    private void cursadasButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cursadasButtonActionPerformed
        // TODO add your handling code here:
        CardLayout cardLayout = (CardLayout) painelPrincipal.getLayout();
        cardLayout.show(painelPrincipal, "painelCursadas");
    }//GEN-LAST:event_cursadasButtonActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(ApresentacaoGUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(ApresentacaoGUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(ApresentacaoGUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(ApresentacaoGUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new ApresentacaoGUI().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton catalogoButton;
    private javax.swing.JButton cursadasButton;
    private javax.swing.JButton jButton3;
    private javax.swing.JCheckBox jCheckBox1;
    private javax.swing.JComboBox jComboBox2;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel6;
    private java.awt.List listCursadas;
    private java.awt.List listObrigatorias;
    private java.awt.List listRestantes;
    private javax.swing.JButton naoCursadasButton;
    private javax.swing.JPanel painelCatalogo;
    private javax.swing.JPanel painelCursadas;
    private javax.swing.JPanel painelEntrada;
    private javax.swing.JPanel painelNaoCursadas;
    private javax.swing.JPanel painelPrefixo;
    private javax.swing.JPanel painelPrincipal;
    private javax.swing.JTextField raTextField;
    // End of variables declaration//GEN-END:variables
}
